package com.iis.testing;

import java.util.ArrayList;
import java.util.Date;

import com.iis.entity.Salesman;

public class TestSalesmanDAO {

	public static void main(String[] args) {
		getAll();
		//saveNew();
	}

	public static void saveNew() {
		
		for(int i = 0;i<10;i++){
			Salesman salesman = new Salesman();
			salesman.setName("sigit " + i);
			salesman.setSalesTarget(20000000d);
			salesman.save();
		}
		
		
	}
	
	public static void getAll(){
		ArrayList<Salesman> sample = Salesman.getAll();
		for(Salesman x : sample){
			System.out.println(x.getName());
		}
	}
	
	

}
